package operator;
//运算符

public class Demo01 {
    public static void main(String[] args) {
        //二元运算符
        int a = 10;
        int b = 20;
        int c = 30;
        int d = 45;
        System.out.println(a+b);//加
        System.out.println(c-b);//减
        System.out.println(c*d);//乘
        System.out.println(d/a);
        //除  整数相除只能得整数，要想得到小数就得有浮点数得参与
        System.out.println(d/(double)a);
        //除  得4.5
    }

}
